home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / bildschirmschoner / blitzblank_2.60 / developer / blitzblank.bb2 < prev    next >
Text File  |  1996-04-07  |  5KB  |  96 lines

  1. #BLITZBLANK_H=-1
  2. ; XINCLUDE "exec/ports.h"
  3. ; XINCLUDE "exec/tasks.h"
  4. ;/****************************************/
  5. ;/* $VER: BlitzBlank.h 2.60 (16.05.95)   */
  6. ;/****************************************/
  7. ;/********************************/
  8. ;/* Stuff for blitzblank.library */
  9. ;/********************************/
  10. #BLITZBLANKLIB_VER=9
  11. ;/*******************************************************************/
  12. ;/* The different kinds of GUI-objects for a module's config-window */
  13. ;/*******************************************************************/
  14. #BB_PGroup=1  ;/* Indicates the start of a new page group */
  15. #BB_PGroup_End=2  ;/* Indicates the end of the page group */
  16. #BB_VGroup=3  ;/* Indicates the start of a new vertical group */
  17. #BB_VGroup_End=4  ;/* Indicates the end of the vertical group */
  18. #BB_Check=5 ;/* Checkmark, uses set field in BB_Object */
  19. #BB_String=6  ;/* Textgadget, uses max/contents fields in BB_Object */
  20. #BB_File=7  ;/* Stringgadget with attached filerequester */
  21. #BB_Slider=8  ;/* Slidergadget, uses min/max/set fields in BB_Object */
  22. #BB_Cycle=9 ;/* Cyclegadget, uses set/contents in BB_Object */
  23. #BB_Dummy=10  ;/* Dummy, if you want no gadgets at all */
  24. #BB_Font=11 ;/* Stringgadget with attached fontrequester */
  25. #BB_Dir=12 ;/* Stringgadget with attached filerequester, Dirs only */
  26. ;/*****************************************/
  27. ;/* Flags used in BB_Message's flag-field */
  28. ;/*****************************************/
  29. #BBF_Screenmode=1 LSL  0  ;/* Allows screenmode-selection */
  30. #BBF_Colors=1 LSL  1  ;/* Allows screendepth-selection */
  31. #BBF_Sample=1 LSL  2  ;/* Not supported yet */
  32. #BBF_NoWatch=1 LSL  3 ;/* Eats no CPU-time, so needs no checking */
  33. #BBF_NoScreen=1 LSL  4  ;/* Wants no screen from BlitzBlank */
  34. #BBF_FirstScreen=1 LSL  5 ;/* Wants pointer to screen in front, be CAREFUL with this! */
  35. #BBF_CloneScreen=1 LSL  6 ;/* Wants a clone from the FrontScreen */
  36. #BBF_AmigaOnly=1 LSL  7 ;/* Not supported yet */
  37. #BBF_NoMouseBlank=1 LSL  8  ;/* No mouseblanking from BlitzBlank wanted */
  38. #BBF_NoKeyPass=1 LSL  9 ;/* No keypassing necessary (no mouseblanking, no own active window */
  39. #BBF_BigWindow=1 LSL 10 ;/* The blankwindow fills the whole screen */
  40. #BBF_Interleaved=1 LSL 11 ;/* BlitzBlank TRIES to give you a screen with an Interleaved BitMap */
  41. ;/*****************************************/
  42. ;/* The structure, that holds config-data */
  43. ;/*****************************************/
  44. NEWTYPE .BB_Object
  45.   *next_.BB_Object ;/* Pointer to next object or NULL if last object */
  46.   type_.w  ;/* What kind of GUI-object this is */
  47.   min_.l ;/* Minimum value for BB_Slider */
  48.   max_.l ;/* Maximum value for BB_Slider, max length of BB_String */
  49.   set_.l ;/* Value of BB_Slider, state of BB_Checkmark, BB_Cycle */
  50.   *contents_.b ;/* Pointer to buffer for BB_String, pointer to stringarray for BB_Cycle */
  51.   *label_.b    ;/* Label for ALL objects */
  52. End NEWTYPE
  53. ;/*****************************************************/
  54. ;/* The message to send to BlitzBlank/BlitzBlankPrefs */
  55. ;/*****************************************************/
  56. NEWTYPE .BB_Message
  57.   msg_.Message ;/* Normal Exec-Message-structure */
  58.   flags_.l ;/* Flags for this module */
  59.   *infotext_.b ;/* Pointer to infotext for this module */
  60.   *first_.BB_Object  ;/* Pointer to first BB_Object or NULL for Info-action */
  61.   modpri_.w          ;/* not of use, if you use the library */
  62.   *path_.b           ;/* Path to directory for module-data */
  63.   *blitzblank_.Task  ;/* not of use, if you use the library */
  64. End NEWTYPE
  65. ;/***************************************/
  66. ;/* The BlitzBlank-Screeninfo-structure */
  67. ;/***************************************/
  68. NEWTYPE .BB_Screeninfo
  69.   xpos_.w  ;/* should be 0 */
  70.   ypos_.w  ;/* should be 0 */
  71.   width_.w ;/* User-selected screen-width */
  72.   height_.w  ;/* User-selected screen-height */
  73.   depth_.w ;/* User-selected screen-depth */
  74.   mode_.l  ;/* User-selected screen-mode */
  75.   *bbscreen_.Screen  ;/* module screen */
  76.   *bbwindow_.Window  ;/* blank window */
  77.   mindepth_.w  ;/* desired minimum depth or 0 */
  78.   maxdepth_.w  ;/* desired maximum depth or 0 */
  79.   xpixelsize.w ;/* X-size of the pixels */
  80.   ypixelsize.w ;/* Y-size of the pixels */
  81. ;/* If you have a given width of something and want to            */
  82. ;/* calculate the aspect-correct height, then do:                 */
  83. ;/* height=width*screeninfo->xpixelsize/screeninfo->ypixelsize;   */
  84. End NEWTYPE
  85. ;/************************************************************/
  86. ;/* Flag-definition for BBL_AllocBitMap()/BBL_AllocRastPort, */
  87. ;/* if you don't have the V39-includes                       */
  88. ;/************************************************************/
  89. #BMB_CLEAR=0
  90. #BMB_DISPLAYABLE=1
  91. #BMB_INTERLEAVED=2
  92. #BMF_CLEAR=1 LSL #BMB_CLEAR
  93. #BMF_DISPLAYABLE=1 LSL #BMB_DISPLAYABLE
  94. #BMF_INTERLEAVED=1 LSL #BMB_INTERLEAVED
  95.  
  96.